package com.jic.market.api.rest;

import com.jic.common.base.vo.RestResult;
import com.jic.market.request.ProductOrderRestRequest;
import com.jic.market.response.ProductMarketResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description: GrouponRestApi
 * date: 2020/4/27 20:20
 * author: wangys
 * version: 1.0
 */

@FeignClient(name = "jic-market", path = "/order/cost")
public interface ProductOrderRestApi {

    @PostMapping("/preOrder")
    RestResult<ProductMarketResponse> preOrder(@RequestBody ProductOrderRestRequest request);

}
